<template>
	<view>
		<view class="follow_tab">
			<uv-tabs
				:list="list" 
				lineWidth="120rpx" 
				lineColor="rgba(255, 133, 53, 1)" 
				:scrollable="false"
				:activeStyle="{
					color: 'rgba(255, 133, 53, 1)',
					fontWeight: 'bold',
					fontSize: '30rpx'
				}"
				:inactiveStyle="{
					color: 'rgba(61, 61, 61, 1)',
					fontSize: '30rpx'
				}" 
				itemStyle="height: 80rpx;"
				@click="clickFollowTab"
				>
			</uv-tabs>
		</view>
		
		<view class="follow_list" v-if="tabIndex == 0">
			<view class="item" v-for="(item,index) in 3" :key="index">
				<view class="head">
					涵
				</view>
				<view class="info">
					<view class="name">
						施涵涵
					</view>
					<view class="text">
						跟进内容
					</view>
					<view class="time">
						2061 / 06 / 01 10:55
					</view>
				</view>
				<navigator class="btn" url="#" hover-class="none">跟进</navigator>
			</view>
		</view>
		
		<view class="follow_list" v-if="tabIndex == 1">
			<view class="item" v-for="(item,index) in 6" :key="index">
				<view class="head">
					涵
				</view>
				<view class="info">
					<view class="name">
						施涵涵
					</view>
					<view class="text">
						跟进内容
					</view>
					<view class="time">
						2061 / 06 / 01 10:55
					</view>
				</view>
				<navigator class="btn" url="#" hover-class="none">跟进</navigator>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{
						name: '今日待跟进'
					}, 
					{
						name: '全部待跟进'
					}
				],
				tabIndex:0
			}
		},
		onLoad() {

		},
		methods: {
			clickFollowTab(e){
				console.log(e)
				this.tabIndex = e.index
			}
		}
	}
</script>

<style lang="scss" scoped>
.follow_tab{
	background: #fff;
	border-bottom: 2rpx solid rgba(230, 229, 231, 0.8);
	padding:0 50rpx;
}
.follow_list{
	background: #fff;
	.item{
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 2rpx solid rgba(230, 229, 231, 0.8);
		padding:30rpx 40rpx;
		.info{
			width: 100%;
			.name{
				font-size: 32rpx;
				font-weight: 500;
				line-height: 38rpx;
				margin-top: 5rpx;
			}
			.text{
				margin-top: 8rpx;
				font-size: 24rpx;
				font-weight: normal;
				line-height: 34rpx;
				color: rgba(61, 61, 61, 0.7);
			}
			.time{
				font-size: 24rpx;
				font-weight: normal;
				line-height: 34rpx;
				color: rgba(61, 61, 61, 0.7);
			}
		}
		.btn{
			flex-shrink: 0;
			display: block;
			font-size: 24rpx;
			font-weight: 500;
			line-height: 38rpx;
			color: rgba(255, 133, 53, 1);
		}
		.head{
			flex-shrink: 0;
			width: 100rpx;
			height: 100rpx;
			margin-right: 20rpx;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			background: #3662EC;
			color:#fff;
			font-size: 40rpx;
		}
	}
}
</style>
